package com.xcc.zuul;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

import java.util.Arrays;

/**
 * @author frosty
 * @description
 * @date 2019-11-21 21:10:22
 */

@SpringBootApplication
@EnableZuulProxy /*开启zuul */
@EnableEurekaClient
@EnableDiscoveryClient
@ComponentScan(basePackages = {"com.xcc.common.redis","com.xcc.common.config.login","com.xcc.zuul"}) /*扫描包 主要是com.xcc.common.redis*/
public class ZuulApplication {
    public static void main(String[] args) {
        SpringApplication.run(ZuulApplication.class,args);
    }


}
